<!-- 我的表格 -->

<template>
  <WebTable>
    <RowIndex />

    <RowTitle label="设备名称" bind="deviceName" :minWidth="120" />

    <RowText label="设备编号" bind="deviceCode" />

    <RowTree label="设备类型" bind="deviceTypeId, deviceTypeName" :dict="$root.product_type_treeDict" allName />

    <RowDict label="所属产品" bind="productId, productName" :dict="product_selectDict" />

    <RowDict label="对接服务" bind="dockingId, dockingName" :dict="service_selectDict" />

    <RowStatus label="在线状态" bind="onlineStatus" :dict="CORE.DICT.STATUS_ONLINE" />

    <RowStatus bind="enable" :width="80" />

    <RowOperate :onShow="windowDetail" />
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [
    mixDetailToTable('', 'DetailIOTDevice'),
    CORE.mixSelect('product', 'product_'),
    CORE.mixSelect('service', 'service_'),
  ],
}
</script>
